package com.aos.erp.schools.service.common;

import com.aos.erp.schools.model.common.Region;
import com.aos.erp.schools.model.common.vo.RegionTree;
import com.aos.erp.schools.model.common.vo.RegionVo;

import java.util.List;
import java.util.Map;

public interface RegionService {
    List<Region> findByParams(Map<String, Object> map);

    /**
     * 获取组织树
     * @return
     * @throws Exception
     */
    List<RegionTree> selectTree() throws Exception;

    List<RegionVo> findByParamsParentId(Map<String, Object> map);

    /**
     * 根据code查询下级信息
     * @param code
     * @return
     */
    List<Region>  findByParamsCode(String code);
}
